package com.tajiang.business.setting.activity;

import android.os.Bundle;

import com.tajiang.business.R;
import com.tajiang.business.common.activity.BaseActivity;
import com.tajiang.business.common.widget.SwitchView;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * Created by Administrator on 2016/7/22.
 */
public class AutoOrderPrintActivity extends BaseActivity {
    @BindView(R.id.sv_blue_tooth)
    SwitchView svBlueTooth;

    @Override
    protected void initTopBar() {
        setTitle("自动接单设置");
    }

    @Override
    protected void initLayout() {
        setContentView(R.layout.layout_auto_order_printting);
    }

    @Override
    protected void initData() {

    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        // TODO: add setContentView(...) invocation
        ButterKnife.bind(this);
    }

    @OnClick(R.id.sv_blue_tooth)
    public void onSwitchViewBlueToothClick() {
        if (svBlueTooth.isOpened()) {
            svBlueTooth.setOpened(false);
        } else {
            svBlueTooth.setOpened(true);
        }
    }
}
